﻿<!--
    Dialog Tinh huong
    Use for create and edit Tinh Huong
    >>> Author: cyworld8x
-->
<Window xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"  
        x:Class="OODCRM.TinhHuongDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Dialog Tổ chức" Height="710" Width="Auto" MinHeight="610" MinWidth="600">
    <Grid Height="Auto" Width="Auto">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="120"/>

        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TabControl Grid.Column="0" Grid.ColumnSpan="2"  Name="tabControl_tabThemTinhHuongDialog" VerticalAlignment="Top" >
            <TabItem Header="Thông tin tình huống" Name="tabItemThongTinChung_tabThemTinhHuongDialog">
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="*"/>

                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>


                    <Border Margin="5" CornerRadius="5" Grid.ColumnSpan="2" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="70"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>

                            <TextBlock Text="Mã hiệu (*)" Margin="5"/>
                            <TextBox x:Name="tbxMaHieu_tabThemTinhHuongDialog" Grid.Column="1" Margin="5" Grid.ColumnSpan="1"
                         MinWidth="150" Text="{Binding MaHieu}"/>
                            <TextBlock Text="Chủ đề (*)" Margin="5" Grid.Row="1"/>
                            <TextBox x:Name="tbxChuDe_tabThemTinhHuongDialog" Grid.Row="1" 
                         Grid.Column="1" Grid.ColumnSpan="2" Margin="5"
                         Text="{Binding TenToChuc}" />
                            <TextBlock Text="Diễn giải " Margin="5" Grid.Row="2"/>
                            <TextBox x:Name="tbxChuQuan_tabThemTinhHuongDialog" Grid.Row="2" 
                         Grid.Column="1" Grid.ColumnSpan="2" Margin="5" MinHeight="60"
                         Text="{Binding TenToChuc}"  />
                         

                        </Grid>
                    </Border>
                    <Border Margin="5,5,5,5" CornerRadius="5" Grid.Row="1" Grid.ColumnSpan="2" BorderBrush="#FF149A08" BorderThickness="1">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>

                            <TextBlock Text="Phân loại" Margin="5"/>
                            <ComboBox x:Name="cbxPhanLoai_tabThemTinhHuongDialog" Grid.Row="0" 
                          Grid.Column="1" Margin="5"
                          SelectedValue="{Binding LOAITOCHUC}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenLoaiToChuc}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Tình trạng" Margin="5"  Grid.Column="2"/>
                            <ComboBox x:Name="cbxTinhTrang_tabThemTinhHuongDialog" Grid.Row="0" 
                          Grid.Column="3" Grid.ColumnSpan="1" Margin="5"
                          SelectedValue="{Binding LOAITOCHUC}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenLoaiToChuc}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Nguồn gốc" Margin="5" Grid.Row="1" />
                            <ComboBox x:Name="cbxNguonGoc_tabThemTinhHuongDialog" Grid.Row="1" 
                          Grid.Column="1"  Margin="5"
                          SelectedValue="{Binding LINHVUC}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenLinhVuc}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Loại" Margin="5" Grid.Column="2" Grid.Row="1" />
                            <ComboBox x:Name="cbxLoai_tabThemTinhHuongDialog" Grid.Column="3" Grid.Row="1" 
                           Margin="5" SelectedValue="{Binding LINHVUC}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding TenLinhVuc}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Mức độ ưu tiên" Margin="5" Grid.Row="2" />
                            <ComboBox x:Name="cbxMucDoYeuTien_tabThemTinhHuongDialog" Grid.Row="2" 
                          Grid.Column="1" Margin="5"
                          SelectedValue="{Binding SLNHANVIEN}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding SLNVTu+SLNVDen}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Nguyên nhân" Margin="5" Grid.Column="2" Grid.Row="2" />
                            <ComboBox x:Name="cbxNguyenNhan_tabThemTinhHuongDialog" Grid.Column="3" Grid.Row="2" 
                          Margin="5"
                          SelectedValue="{Binding SLNHANVIEN}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding SLNVTu+SLNVDen}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            <TextBlock Text="Lượt đọc" Margin="5" Grid.Row="3" />
                            <TextBox x:Name="tbxLuotDoc_tabThemTinhHuongDialog" Grid.Row="3" 
                         Grid.Column="1"  Margin="5"
                         Text="{Binding MaSoThue}" />
                            <TextBlock Text="Chủ sở hữu" Margin="5" Grid.Column="2" Grid.Row="3" />
                            <ComboBox x:Name="cbxChuSoHuu_tabThemTinhHuongDialog" Grid.Column="3" Grid.Row="3" 
                          Margin="5"
                          SelectedValue="{Binding SLNHANVIEN}">
                                <ComboBox.ItemTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding SLNVTu+SLNVDen}"/>
                                    </DataTemplate>
                                </ComboBox.ItemTemplate>
                            </ComboBox>
                            
                            <TextBlock Text="Giải pháp" Margin="5" Grid.Row="5" />
                            <TextBox x:Name="tbxNganHang_tabThemTinhHuongDialog" Grid.Row="5" 
                         Grid.Column="1" Grid.ColumnSpan="3" Margin="5"  MinHeight="60"
                         Text="{Binding NganHang}" />
                           


                        </Grid>
                    </Border>                    
                    <Border Margin="5" CornerRadius="5" Grid.Row="3" Grid.ColumnSpan="2" >
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="120"/>
                                <ColumnDefinition Width="120"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>

                            </Grid.RowDefinitions>
                            <CheckBox x:Name="chkNgungTheoDoi_tabThemTinhHuongDialog" Content="Ngừng theo dõi" Margin="5,5,5,5" 
                  VerticalAlignment="Top" HorizontalAlignment="Left"
                  IsChecked="{Binding NgungTheoDoi}"/>
                            <Button x:Name="btnCat_tabThemTinhHuongDialog" Content="Cất" Grid.Row="1" Grid.Column="2" Margin="5,10,10,5" 
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Width="100" Height="35"  IsDefault="True"/>
                            <Button x:Name="btnHuyBo_tabThemTinhHuongDialog" Content="Huỷ bỏ" Grid.Row="1" Grid.Column="3" Margin="5,10,10,5" 
                HorizontalAlignment="Right" VerticalAlignment="Top"
                Width="100" Height="35" IsCancel="True"/>
                        </Grid>
                    </Border>
                </Grid>
            </TabItem>
           
        </TabControl>
        
    </Grid>
</Window>
